<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=yes">
    <title>Title</title>
    <script src="/test_code/zbEditTable.js"></script>
</head>
<body>

    <div id="et"></div>

    <p id="content"></p>
    <button onclick="$('#content').text(editTable.getInputs('xxx'))">获取数据</button>

<script type="text/javascript">
    let editTable = new zbEditTable();
    let table = editTable.createEmptyResponseEditTable('xxx', 2, 2); //可以动态添加/删除行

    // let table = editTable.createEmptyEditTable('xxx', 4, 5); //创建指定行/列的空的可编辑的表格

    // let arr = [[1,2,3,4], [5,6,7,8], [9,10,11,12]];
    // let table = editTable.createValuedEditTable('xxx', arr); //创建指可编辑的表格, 并用数据初始化
    
    // let arr = [[1,2,3,4], [5,6,7,8], [9,10,11,12]];
    // let table = editTable.createValuedReadTable('xxx', arr); //创建只读的表格, 并用数据初始化
    document.getElementById('et').appendChild(table);


</script>

</body>
</html>